<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <title>INSPINIA | Register</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet"/>
    <link th:href="@{/css/plugins/iCheck/custom.css}" rel="stylesheet"/>
    <link th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link th:href="@{/css/style.css}" rel="stylesheet"/>

</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen   animated fadeInDown">
        <div>
            <div>
                <h2 class="logo-name">MX</h2>
            </div>
            <h3>Register to MOXI</h3>
            <p>Create account to see it in action.</p>
            <form class="m-t" role="form" method="post"  th:action="@{/user/add}">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="学号" required="true" name="name"/>
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="用户名" required="true" name="username"/>
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="班级" required="true" name="class"/>
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="系别" required="true" name="department"/>
                </div>
                <div class="form-group">
                    <label>男<input type="checkbox"  class="i-checks" name="sex_male"></label>
                    <label>女<input type="checkbox"  class="i-checks" name="sex_female"></label>
                </div>

                <button type="submit" class="btn btn-primary block full-width m-b">注册</button>

                <p class="text-muted text-center"><small>Already have an account?</small></p>
                <a class="btn btn-sm btn-white btn-block" th:href="login" href="/user/add">Login</a>
            </form>
            <p class="m-t"> <small>Inspinia we app framework base on Bootstrap 3 &copy; 2014</small> </p>
        </div>
    </div>

    <!-- Mainly scripts -->
    <script src="js/jquery-2.1.1.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- iCheck -->
    <script src="js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function(){
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>
</body>

</html>
